﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Lbb.Drawing
{
    /// <summary>
    /// 缩略图的配置
    /// </summary>
    public class ThumbnailConfig
    {
        public int Quality { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }
        public Color BackgroundColor { get; set; }
        public ResizeStyle ResizeStyle { get; set; }
        public bool MustFit { get; set; }

        /// <summary>
        /// 默认设置
        /// </summary>
        public ThumbnailConfig()
        {
            Quality = 80;
            Width = 100;
            Height = 100;
            BackgroundColor = Color.White;
            ResizeStyle = ResizeStyle.Zoom;
            MustFit = true;
        }
    }
}
